<script>
  alert("This is Alert Message");
  document.write("This is document write Message");
  confirm("Are you sure ?");
  console.log("This is log messsage, to check press F12->Console");
</script>